import React, { Component } from 'react';
// import axios from 'axios';
import '@/components/MusicHall/MV/MVshow/Banner.scss'


class Banner extends Component {
    constructor (props) {
        super (props)
        this.state={
            mvUrl:''
        }
    }
     componentDidMount () {
        // console.log(this.props.match.params.id);
        this.setState({           
            mvUrl : 'https://api.bzqll.com/music/netease/mvUrl?key=579621905&id=5965802&r=1080'
        })
    }
    render () {
        console.log(this.state.mvUrl)
        return (
            <div className= 'mvshow-banner-box'>
                <video src={ this.state.mvUrl } controls autoPlay>
                    您的浏览器不支持 audio 标签。
                </video>             
            </div>
        )
    }
}

export default Banner;